home *** CD-ROM | disk | FTP | other *** search
/ SuperModels in the Rainforest / SuperModels in the Rainforest.iso / rain.dxr / 00058_Snapshot Button Sprite Script.ls < prev    next >
Encoding:
Text File  |  1995-10-13  |  970 b   |  30 lines

  1. on mouseDown
  2.   global giVid2Sprite, giVidSprite, giTempVid2Cast, giTempVidCast, giVid3Sprite, giTempVid3Cast, glShotList, gbShotFlag
  3.   buttonLogic()
  4.   if the result = 1 then
  5.     puppetSound("snapshot")
  6.     set tempSprite to 0
  7.     if the visible of sprite giVid2Sprite = 1 then
  8.       set tempSprite to giVid2Sprite
  9.       set tempCast to giTempVid2Cast
  10.     else
  11.       if the visible of sprite giVidSprite = 1 then
  12.         set tempSprite to giVidSprite
  13.         set tempCast to giTempVidCast
  14.       else
  15.         if the visible of sprite giVid3Sprite = 1 then
  16.           set tempSprite to giVid3Sprite
  17.           set tempCast to giTempVid3Cast
  18.         end if
  19.       end if
  20.     end if
  21.     if gbShotFlag = 0 then
  22.       set glShotList to [the fileName of cast tempCast, the movieTime of sprite tempSprite]
  23.       set gbShotFlag to 1
  24.     else
  25.       append(glShotList, the fileName of cast tempCast)
  26.       append(glShotList, the movieTime of sprite tempSprite)
  27.     end if
  28.   end if
  29. end
  30.